//
//  UILabel+WEXExtension.m
//  microBlog_oc
//
//  Created by apple on 16/4/23.
//  Copyright © 2016年 Hill. All rights reserved.
//

#import "UILabel+WEXExtension.h"

@implementation UILabel (WEXExtension)

- (UILabel *)initWithTextColor:(UIColor *)color withFontSize:(CGFloat)fontSize {
    
    UILabel *label = [[UILabel alloc] init];
    
    label.tintColor = color;
    
    label.font = [UIFont systemFontOfSize:fontSize];
    
    return label;
}

- (UILabel *)initWithTextColor:(UIColor *)color withFontSize:(CGFloat)fontSize withpreferredMaxLayoutWidth:(CGFloat)preferredMaxLayoutWidth{
    
    UILabel *label = [[UILabel alloc] initWithTextColor:color withFontSize:fontSize];
    
    label.preferredMaxLayoutWidth = preferredMaxLayoutWidth;
    
    label.numberOfLines = 0;
    
    return label;
}

@end
